<!--学员评价-->
<template>
    <div>
        <!-- 面包屑导航 -->
            <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/index' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>学员评价</el-breadcrumb-item>
            </el-breadcrumb>
            <div style="margin: 10px auto;"></div>
             <el-button type="danger"   @click="findData()">刷新</el-button>
            <div style="margin: 10px auto;"></div>
             <!--列表-->
            
            <el-table size="small"  style="width: 100%" :data="listData" highlight-current-row v-loading="loading"  element-loading-text="拼命加载中" >
                
                <el-table-column
                    width="200"
                prop="username"
                label="姓名">
                </el-table-column>

                <el-table-column
                    width="200"
                prop="url"
                label="头像">
                <template slot-scope="scope">
                        <el-avatar :size="50" :src="scope.row.url"></el-avatar>
                </template>
                </el-table-column>

                <el-table-column
                    width="200"
                prop="tel"
                label="电话">
                </el-table-column>
               
               <el-table-column
                    width="200"
                prop="createTime"
                label="预约时间">
                </el-table-column>

                <el-table-column
                    width="200"
                prop="remarks"
                label="内容">
                </el-table-column>

                <el-table-column
                    width="200"
                prop="score"
                label="内容">
                    <template slot-scope="scope">
                        <el-rate disabled v-model="scope.row.score"></el-rate>
                    </template>
                </el-table-column>
               

                
               
               
                


           
           
            </el-table>
    </div>
</template>
<script>
export default {
    data() {
        return {
            listData:[],
            loading:false
        }
    },
    created(){
            this.findData();
    },
    methods: {
        findData(){
            this.MyLoading();
            this.$api.get('/order/token/findAllOrderByAdmin','',res=>{
                    this.listData = res.data.data;
            })
        },
         MyLoading(){
            this.loading =true;
            setTimeout(()=>{
                this.loading =false
            },500)
        },
    },
}
</script>
<style scoped>

</style>